<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>遍历复杂循环输出</title>
</head>
<body>
<h1>循环遍历复杂集合输出：List-->Map-->List-->User</h1>
<!--    <div th:each="myListMap,myListMapStat:${myList}">-->
<!--        循环遍历输出map：<div th:each="myListMapList,myListMapListStat:${myListMap.values()}">-->
<!--        map集合的key：<span th:text="myListMapList.key"></span>-->
<!--            <div th:each="myListMapListObj,myListMapListObjStat:${myListMapList}">-->
<!--                    <span th:text="myListMapListObj.id"></span>-->
<!--                    <span th:text="myListMapListObj.nick"></span>-->
<!--                    <span th:text="myListMapListObj.phone"></span>-->
<!--                    <span th:text="myListMapListObj.address"></span>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<div th:each="myListMap:${myList}">
    <div th:each="myListMapList:${myListMap}">
        输出map集合的key：<span th:text="${myListMapList.key}"></span><br/>
        输出map集合的value：<div th:each="myListMapListObj:${myListMapList.value}">
            <span th:text="${myListMapListObj.id}"></span>
            <span th:text="${myListMapListObj.nick}"></span>
            <span th:text="${myListMapListObj.phone}"></span>
            <span th:text="${myListMapListObj.address}"></span>
        </div>
    </div>
</div>
</body>
</html>